﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using ScrumLite.Services;
using ScrumLite.Services.Contracts;
using System.Collections.ObjectModel;

namespace ScrumLite.Gateways
{
    public class CommitmentsServiceClient : ClientBase<ICommitmentsService>, ICommitmentsService
    {

        #region ICommitmentsService Members

        public DateTime[] GetStandupDates(string projectId)
        {
            return base.Channel.GetStandupDates(projectId);
        }

        public Commitment[] GetCommitments(DateTime commitmentDate, string projectId)
        {
            return base.Channel.GetCommitments(commitmentDate, projectId);
        }

        public Commitment GetCommitment(Guid commitmentId)
        {
            return base.Channel.GetCommitment(commitmentId);
        }

        public Dictionary<int, int> GetWeeklyCommitmentsCount(string projectId, bool closed)
        {
            return base.Channel.GetWeeklyCommitmentsCount(projectId,closed);
        }

        public void Add(string projectId, Commitment commitment)
        {
            base.Channel.Add(projectId, commitment);
        }

        public void Delete(Guid id)
        {
            base.Channel.Delete(id);
        }

        public void Update(Commitment commitment)
        {
            base.Channel.Update(commitment);
        }

        #endregion
    }
}
